using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using UnityEngine;

public class viewControl : MonoBehaviour
{
    public GameObject player;
    private Vector2 offset;
    // Start is called before the first frame update
    void Start()
    {
        offset = transform.position - player.transform.position;
    }

    // Update is called once per frame
    void LateUpdate()
    {
        Vector2 move1 = new Vector2(transform.position.x, transform.position.y);
        Vector2 move2 = new Vector2(player.transform.position.x, player.transform.position.y);

        move1 = move2 + offset;
    }
}
